package com.talkingdata.hadoop.guard.mapper;

import com.talkingdata.hadoop.guard.bean.FolderState;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface FolderMapper {
    @Insert("insert into folder_state (" +
            "service_id,name_dir,file_count," +
            "length,space_consumed,create_time,timestamp) values (" +
            "#{serviceId},#{nameDir},#{fileCount},#{length}," +
            "#{spaceConsumed},#{createTime},#{timestamp})")
    int insertFolder(FolderState folderState);
}
